<template>
    <!-- 热门品牌 -->
    <div class="hot">
        <div class="wrapper">
            <div class="title">
                <div class="left">
                    <h3>热门品牌</h3>
                    <p>国际经典 品质认证</p>
                </div>
                <div class="button">
                    <a href="#"><i class="iconfont icon-arrow-left-bold"></i></a>
                    <a href="#"><i class="iconfont icon-arrow-right-bold"></i></a>
                </div>
            </div>
            <div class="bd">
                <ul>
                    <BaseHotBrandItem v-for="(item, index) in getBrandsImgUrl" :key="index" :brandImg="item"></BaseHotBrandItem>  
                </ul>
            </div>
        </div>
    </div>
</template>

<script>
import BaseHotBrandItem from './BaseHotBrandItem.vue'
export default {
    name: 'XtxHotBrand',
    components: {
        BaseHotBrandItem
    },
    data() {
        return {
            brandsImg: [
                'hot1.png',
                'hot2.png',
                'hot3.png',
                'hot4.png',
                'hot5.png',
            ]
        }
    },
    computed: {
        getBrandsImgUrl(){
            return this.brandsImg.map(item=>require('@/assets/images/'+item))
        }
    }

}
</script>

<style scoped>
/* 热门品牌 */
.hot {
    margin-top: 60px;
    padding-bottom: 40px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.hot .title {
    position: relative;
    margin-bottom: 40px;
}

.hot .button {
    display: flex;
    position: absolute;
    right: 0;
    top: 47px;
}

.hot .button a {
    display: block;
    width: 20px;
    height: 20px;
    background-color: #ddd;
    text-align: center;
    line-height: 20px;
    color: #fff;
}

.hot .button a:nth-child(2) {
    margin-left: 12px;
    background-color: #00BE9A;
}

.hot .bd ul {
    display: flex;
    justify-content: space-between;
}


</style>